package com.ews.onlineexchange.model;

import javax.persistence.Entity;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlTransient;

/**公告要求事项
 * @author Administrator
 *
 */
@Entity
public class RequirementDefination extends DataEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String 			requiredName;			//要求名称	
	private	boolean			required = false;		//是否必填
	private String			dataType = "Attachment" ;//材料类型(例如，附件、图片等)
	private String			uuid;
	@NotNull
	public String getRequiredName() {
		return requiredName;
	}
	public void setRequiredName(String requiredName) {
		this.requiredName = requiredName;
	}
	
	public boolean isRequired() {
		return required;
	}
	public void setRequired(boolean required) {
		this.required = required;
	}
	
	@NotNull
	public String getDataType() {
		return dataType;
	}
	public void setDataType(String dataType) {
		this.dataType = dataType;
	}
	
	@XmlTransient
	@Transient
	public String getUuid() {
		return uuid;
	}
	public void setUuid(String uuid) {
		this.uuid = uuid;
	}
	public RequirementDefination(String requiredName, boolean required) {
		super();
		this.requiredName = requiredName;
		this.required = required;
	}
	public RequirementDefination() {
		super();
	}
	
	
	
	
	
}
